package com.vinfai.patterns.decorator;

public class MyDecorator extends Decorator {

	public MyDecorator(Component component ){
		super(component);
	}
	
	@Override
	/**调用原始构件功能，通常就可直接把扩展功能加在此方法中*/
	public void doOperation(String str) {
		super.getComponent().doOperation(str);
		logger.info(doFly());
	}
	
	private String doFly(){
		return "my decorator method .....";
	}

}
